package xsxdjc.class9
public class 性别分类{
	static public class ClasOption implements hc.bre.cmn.IListOption{
		int id;
		String code;
		String name;
	};
	public static final ClasOption female = new ClasOption(id:2, code:'female', name:'女性');
	public static final ClasOption male = new ClasOption(id:1, code:'male', name:'男及未知');
	public static Closure rule = {_context_ ->
		hc.bre.clas.ClasResult _result_ = new hc.bre.clas.ClasResult();
		_result_.rname = '性别分类';
		_result_.rpath = 'xsxdjc/class9/性别分类';
		
		switch(基本信息.性别){
			case 1 :
				_result_.clas = 性别分类.female;
				break;
			default :
				_result_.clas = 性别分类.male;
				break;
		};
		
		return _result_;
	};
};